import request from '@/utils/request'

// 查询音频文件频谱图列表
export function listSpectrum(query) {
  return request({
    url: '/swla2/videoSpectrum/list',
    method: 'get',
    params: query
  })
}

// 查询音频文件频谱图详细
export function getSpectrum(id) {
  return request({
    url: '/swla2/videoSpectrum/' + id,
    method: 'get'
  })
}

// 新增音频文件频谱图
export function addSpectrum(data) {
  return request({
    url: '/swla2/videoSpectrum',
    method: 'post',
    data: data
  })
}

// 修改音频文件频谱图
export function updateSpectrum(data) {
  return request({
    url: '/swla2/videoSpectrum',
    method: 'put',
    data: data
  })
}

// 删除音频文件频谱图
export function delSpectrum(id) {
  return request({
    url: '/swla2/videoSpectrum/' + id,
    method: 'delete'
  })
}
